home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 26
/
Cream of the Crop 26.iso
/
program
/
ddj0897.zip
/
DYN401.ZIP
/
kernel
/
port
/
stack.c
< prev
next >
Wrap
C/C++ Source or Header
|
1994-06-11
|
257b
|
22 lines
#include <stdio.h>
main(void)
{
char x[100];
fun(x);
}
fun(char *x)
{
if (x < (char *) &x)
printf("STACK GROWS UP\n");
else
printf("STACK GROWS DOWN\n");
if (&x[0] < &x[10])
printf("ARRAYS GROW UP\n");
else
printf("ARRAYS GROW DOWN\n");
}